const path = require('path')
module.exports = {
  devServer: {
    port: 3000,
    open: true,
    proxy: {
      '/zhangqile': {
        target: 'https://api.it120.cc',
        ws: false,
        changeOrigin: true,
        pathRewrite: {
          '^/zhangqile': '/zhangqile'
        }
      }
    }
  },
  lintOnSave: false,
  chainWebpack:(config)=>{
    config.resolve.alias
    .set('@', path.join(__dirname, 'src'))
    .set('views', path.join(__dirname, 'src/views'))
  }
}
